<!--
 * @Author: gaoyu gy15354315043@163.com
 * @Date: 2024-10-15 15:21:09
 * @LastEditors: gaoyu gy15354315043@163.com
 * @LastEditTime: 2024-11-27 18:16:55
 * @Description: 平台名称、平台logo
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved. 
-->
<template>
    <div class="platform">
        <el-image :src="platformLogo" class="platLogo" v-if="platformLogo" />
        <span class="platName" v-if="device !== 'mobile'">{{ platformName }}</span>
    </div>
</template>
<script lang="ts" setup>
import { useSettingsStore } from '@/framework/store/modules/settings';
import { useAppStore } from '@/framework/store/modules/app';
const settingsStore = useSettingsStore();
const platformLogo = computed(() => settingsStore.platformLogo)
const platformName = computed(() => settingsStore.platformName)
const appStore = useAppStore();
const device = computed(() => appStore.device);
</script>
<style scoped lang="scss">
.platform {
    display: flex;
    align-items: center;
    margin-left: 24px;
    margin-right: 8px;

    .platLogo {
        height: 28px;
        margin-right: 12px;

        :deep(.el-image__inner) {
            width: auto;
        }
    }

    .platName {
        font-size: 16px;
        font-weight: 500;
        color: #FFFFFF;
    }

    :deep(.el-image__placeholder) {
        width: 100%;
        display: block;
        background-color: #000;
    }
}
</style>